package com.hl.card.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.hl.card.common.persistence.model.User;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author hl
 * @since 2017-07-11
 */
public interface UserMapper extends BaseMapper<User> {

	public int updateUserSex(User user);
//	 User selectByPrimaryKey(User id);
	User selectByPhone(String phone);
	public int updateUserIsRemember(String user_id);
	public List<User> queryVipManage(Map<String, Object> map);
	public User selectUser(User user);
	public int updateUserPayPasswordById(User user);
	public int queryRegCodeCount(String regCode);  //查询注册码数量(是否存在)
	public int saveUserPayPassword(User user);
	public void updateCommunityUser(Map<String,Object> map);
	public void updateUserInfo(User user);
	List<User> queryUserAndRecommendCount(Page page, @Param("regCode") String regCode);
	/**
	 * 更新上级推荐码
	 * @param map
	 */
	public void updateReferRegCode(Map<String,Object> map);
	
	
	
	  public List<User>  searchCardByNoRegexp(Map<String,Object> param);
	  public List<User>  searchCardByNo(String phone);
	  
	  public List<User>  searchCardByNoAndNameRegexp(Map<String,Object> param);
	  public List<User>  searchCardByNoAndName(Map<String,Object> param);
}